/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 杨已萱
 * Date: 2022-11-22
 * Time: 11:09
 */
public class text {
    public static int fac(int n){//n 是项数//递归计算阶乘；
        if(n == 1){
            return 1;
        }
        int temp = n * fac(n -1);
        return temp;
    }

    public static int max(int a ,int b ){
        return a > b ? a : b;
    }
    public static int max(int a,int b,int c){//调用上面的方法
        int temp = max(a,b);
        return max(temp,c);//return max !!!!
    }

    public static void main1(String[] args) {
        System.out.println(max(34, 65432, 1245));//判断三个数的最大值
    }
}
